<template>
  <div>{{ msg }}</div>
  <button @click="say">点我就叫</button>
</template>
<script>
export default {
  // vue3 compositionApi代码的起点
  setup (){
    console.log('我是setup')
    console.log(this)
    const msg = 'vue3好简单啊'

    const say = () => {
      console.log('你别点我,我卡')
    }
    return {
      msg,
      say
    }
  },
  beforeCreate() {
    console.log('我是beforeCreate');
    console.log(this);
  }
}

</script>